This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Andre, I decided to crack open a test .nsf with a hex editor and I think I've got a pointer to the problem.
What does notes use internally to store a newline char? Is it hex 00?
I took a blank database, created an agent that would create a doc with two items, "form" and "Bar" with the values "Foo" and "wagga\r\nwagga" respectively. I then created a form called "Foo" with a field "Bar" and ran the agent twice. Next I opened the second document, copied the value from Bar and copied it into a text editor that would show line endings. The line endings showed [CR][LF] as expected. I then copied that back to the clipboard and pasted back into notes. I then saved the document, closed the database and then opened it in a hex editor.
Looking at the hex I could find two instances of pairs of the string "wagga", the first pair separated by the chars 0D 0A, the next pair by 00.
I've tried setting the value "wagga"+char(0)+"wagga", to see if that would work, but it doesn't. In fact it replaces the 00 with 01 and truncates the rest of the string.
Does any of this help?
Feedback response number WEBB6ZFEGX created by ~Rex Fezgerokony on 03/19/2007